package ShareYourWay.rest;

import java.util.ArrayList;




import ShareYourWay.project.Meetup;




public class Pruebas_Meet {
	
	static public ArrayList<Meetup> ListaMeets = new ArrayList<Meetup>();
	
	public Pruebas_Meet() {
		super();

		
	}
	
	public ArrayList<Meetup> getMeets() {
		return ListaMeets;
	}

	
	public Meetup add (Meetup p) {
		
		ListaMeets.add(p);
		return p;
		
			}
	
	public void Listar () {
		
		int i=0;
		
		while(i < ListaMeets.size()){
			
			System.out.println("Nombre: "+ListaMeets.get(i).getVehicle());
			System.out.println("Nombre: "+ListaMeets.get(i).getOrigin());
			System.out.println("Nombre: "+ListaMeets.get(i).getDestination());
			i++;
		}
	
				}
	
	

}
